// ==UserScript==
// @name           Gwyneth Llewelyn EZ-read
// @namespace      http://blog.signpostmarv.name/gwyneth-lleweny-ez-read/
// @description    Makes it easier to read Gwyn's blog.
// @include        http://gwynethllewelyn.net/*
// ==/UserScript==
var blog = document.getElementsByTagName('div');
if(blog)
{
	for(i in blog)
	{
		if(blog[i].className == 'main_post')
		{
			var posts = blog[i].getElementsByTagName('p');
			break;
		}
	}
	if(posts)
	{
		var div = document.createElement('div');
		var h1 = document.createElement('h1');
		h1.innerHTML = document.title;
		h1.style.fontSize = '0.5em';
		div.appendChild(h1);
		for(i in posts)
		{
			if(posts[i].innerHTML != undefined)
			{
				var p = document.createElement('p');
				p.style.padding = '1em';
				p.innerHTML = posts[i].innerHTML;
				div.appendChild(p);
			}
		}
		div.id = 'gwyn-ez-read';
		
//		div.innerHTML = posts[1].innerHTML;
		div.style.position = 'fixed';
		div.style.top = '0';
		div.style.left = '0';
		div.style.width = '100%';
		div.style.height = '100%';
		div.style.background = '#fff';
		div.style.textAlign = 'left';
		div.style.overflow = 'auto';
		div.style.fontSize = '2em';
		
		document.body.appendChild(div);
	}
}